package com.springAop.TestproxyFactoryBean;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestProxy {
	@Test
	public void demo01() {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("com/springAop/TestproxyFactoryBean/bean.xml");
		UserService userService = applicationContext.getBean("proxyService",UserService.class);
		userService.addUser();
		userService.updateUser();
		userService.deleteUser();
	}
}
